/*
 * main.cpp
 *
 *  Created on: 2008-8-12
 *      Author: fanliangliang
 */

#include "test/foreach.h"
#include "test/lexical_cast.h"
#include "test/singleton.h"
#include "test/thread.h"
#include "test/string_util.h"
#include "test/time_probe.h"
#include "test/md5.h"
#include "test/byte_stream.h"
#include "test/base64.h"
#include "test/thread_pool.h"
#include "test/log.h"

/*
struct A {
	A(int i):_i(i) { xdebug << "A(" << _i << ")"; }
	~A() { cout << "~A(" << _i << ")" << endl; }

	int _i;
};

tss_ptr<A> _tss;

void tss_test_route(int i) {
	if (_tss.get() == 0) {
		_tss.reset(new A(i));
		xdebug << "[id=" << i << "]" << "_tss.get() == 0";
	}
	_tss->_i *= -1;
	xdebug << "[id=" << i << "]" << "_tss->_i == " << _tss->_i;
}
*/

int main() {

/*	do_test_foreach();
	do_test_lexical_cast();
	do_test_singleton();
	do_test_thread();
	do_test_string_util();
	do_test_time_probe();
	do_test_md5();
	do_test_byte_stream();
	do_test_base64();
	do_test_thread_pool();
	do_test_log();*/
	do_test_foreach();
	return 0;
}
